﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sendlist.aspx.cs" Inherits="OP.manage.post.sendlist" %>


<!DOCTYPE html>

<%@ Register TagPrefix="webdiyer" Namespace="Wuqi.Webdiyer" Assembly="AspNetPager, Version=7.3.2.0, Culture=neutral, PublicKeyToken=fb0a0fe055d40fd4" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-- #include file="~/html/file.aspx" -->
    <style type="text/css">
        .das_table table td {
            padding: 5px 0 5px 5px;
            white-space: normal;
            word-break: keep-all;
            word-wrap: break-word;
        }
    </style>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>

</head>
<body>
    <form id="form1" runat="server">
         <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div class="wrap">
            <!-- #include file="~/html/top.aspx" -->
            <div class="das">
                <div class="contents">
                    <!-- #include file="~/html/menu.aspx" -->
                    <div class="main">
                        <!--标题栏-->
                        <div class="main_blc">
                            <div class="main_title">
                                <h3>店铺动态</h3>
                            </div>
                            <!--搜索栏-->
                            <div class="main_search_bg">
                                <div class="main_search" style="height: auto;">
                                    <dl class="con-search-item">
                                        <dt>城市：
                                        </dt>
                                        <dd>
                                            <asp:UpdatePanel ID="UpdatePanel2" UpdateMode="Conditional" runat="server">
                                                <ContentTemplate>
                                                    <asp:DropDownList runat="server" ID="ddlLocation" AutoPostBack="true" CssClass=" inputtxt" OnSelectedIndexChanged="ddlLocation_SelectedIndexChanged"></asp:DropDownList>
                                                    <asp:DropDownList runat="server" ID="ddlcity"  CssClass=" inputtxt">
                                                        <asp:ListItem Value="0">城市</asp:ListItem>
                                                    </asp:DropDownList>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </dd>
                                    </dl>
                                    <dl class="con-search-item">
                                        <dt>手机号码：
                                        </dt>
                                        <dd>
                                            <asp:TextBox ID="txtMobile" CssClass="inputtxt w100" runat="server"></asp:TextBox>
                                        </dd>
                                    </dl>
                                    <dl class="con-search-item">
                                        <dt>创建时间：
                                        </dt>
                                        <dd>
                                            <asp:TextBox ID="txtStartDate" autocomplete="off" onFocus="var txtEndDate=$dp.$('txtEndDate');WdatePicker({onpicked:function(){txtEndDate.focus();}})" CssClass="inputtxt w100" runat="server"></asp:TextBox>
                                            到 
                                        <asp:TextBox ID="txtEndDate" autocomplete="off" onFocus="var txtEndDate=$dp.$('txtEndDate');WdatePicker({onpicked:function(){txtEndDate.focus();}})" CssClass="inputtxt w100" runat="server"></asp:TextBox>
                                        </dd>
                                    </dl>

                                    <dl class="con-search-item">
                                        <dt>
                                            <a href="javascript:void(0);" class="submit">
                                                <asp:Button runat="server" ID="btnSel" Text="查询" OnClick="btnSave_Click" />
                                            </a>
                                        </dt>
                                        <dd></dd>
                                    </dl>

                                    <div class="clearfix"></div>
                                </div>
                            </div>
                             <div class="hl_tabs">

                                <ul id="menuList">
                                    <li class="current">
                                        <a href="#">发单动态</a>
                                    </li>
                                    <li>
                                        <a href="receivelist.aspx">接单动态</a>
                                    </li>
                                </ul>
                            </div>
                            <!--按钮栏-->
                            <div class="dasBtn1 das_tbtns cuxiao_title_new">
                                <ul class="clearfix">
                                    <!--列表个数-->
                                    <li class="fr_ts fr_ts_new">共 <strong>
                                        <%=pager1.RecordCount%>
                                    </strong>条记录
                                    </li>
                                </ul>
                            </div>
                            <!--表格栏-->
                            <div class="das_table">
                                <table width="100%" cellspacing="0" cellpadding="0" border="0">
                                    <colgroup></colgroup>
                                    <thead>
                                        <tr>
                                            <th scope="col">
                                                <span>店铺名称</span>
                                            </th>
                                            <th scope="col">
                                                <span>业务类型</span>
                                            </th>
                                              <th scope="col">
                                                <span>城市</span>
                                            </th>
                                            <th scope="col">
                                                <span>个人报价</span>
                                            </th>
                                            <th scope="col">
                                                <span>同行报价</span>
                                            </th>
                                            <th scope="col">
                                                <span>点赞数量</span>
                                            </th>
                                            <th scope="col">
                                                <span>评论数量</span>
                                            </th>
                                            <th scope="col">
                                                <span>时间</span>
                                            </th>
                                            <th scope="col"><span>操作</span>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <asp:Repeater ID="rptDataList" runat="server">
                                            <ItemTemplate>
                                                <tr>

                                                    <td>
                                                        <%#Eval("ShopName") %>
                                                    </td>
                                                    <td>
                                                          <%#GetBizTypeNameById((int)Eval("BizTypeID")) %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("CityName") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("PersonPrice") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("TradePrice") %>
                                                    </td>
                                                    <td>
                                                        <%#Eval("LikeCount") %>
                                                    </td>
                                                       <td>
                                                        <%#Eval("CommentCount") %>
                                                    </td>
                                                    <td>
                                                        <%#EConvert.ToDateTime(Eval("CreatedDate")).ToDisplay("yyyy-MM-dd HH:mm:ss") %>
                                                    </td>

                                                    <td class="td-no-wrap">
                                                        <a href="javascript:void(0)" onclick="openWindow(<%# Eval("postId") %>)">详情
                                                        </a>
                                                    </td>
                                                </tr>
                                            </ItemTemplate>

                                        </asp:Repeater>
                                    </tbody>
                                </table>
                            </div>
                            <!--设定无内容时格式-->
                            <div class="das_tableb " <%=style %>>
                                <div class="alert_tips">
                                    <div>
                                        没有数据！
                                    </div>
                                </div>
                            </div>
                            <!--底部分页栏-->
                            <div class="das_tableb pages">
                                <webdiyer:AspNetPager ID="pager1" PageSize="15" runat="server" PrevPageText="&lt;&lt;上一页"
                                    NextPageText="下一页&gt;&gt;" FirstPageText="首页" LastPageText="末页" showinputbox="Auto"
                                    AlwaysShow="false" OnPageChanged="pager1_PageChanged" CssClass="paginator" CurrentPageButtonClass="cpb">
                                </webdiyer:AspNetPager>
                            </div>
                        </div>
                    </div>
                    <sub class="tl"></sub>
                    <sub class="tr"></sub>
                </div>
                <sub class="tl"></sub>
            </div>
            <!-- #include file="~/html/foot.aspx" -->
        </div>
    </form>
    <script type="text/javascript">
       
        function openWindow(id) {
            var url = '<%=GetPageUrl("postdetail.aspx")%>?type=1&id=' + id;
             var width = 900 || $(top.window).width() * 0.8;
             var height = 600 || $(top.widdow).height() * 0.8;
             showTopLayer("详情", url, width, height);
         }
    </script>
</body>
</html>

